//
//  UILabel+testSize.h
//  BadBoy
//
//  Created by wen on 2017/3/13.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, YYFrameStyle) {
    YYFrameStyleLeftAndTop,
    YYFrameStyleLeftAndBottom,
    YYFrameStyleLeftAndCenterY,
    YYFrameStyleRightAndTop,
    YYFrameStyleRightAndBottom,
    YYFrameStyleRightAndCenterY,
    YYFrameStyleCenterXAndTop,
    YYFrameStyleCenterXAndBottom,
    YYFrameStyleCenterXAndCenterY
};

@interface UILabel (testSize)

- (CGRect)getFrameWithTest:(NSString *)test
                      font:(UIFont *)font
                frameStyle:(YYFrameStyle)frameStyle
                horizontal:(CGFloat)horizontal
                  vertical:(CGFloat)vertical
               widthOffset:(CGFloat)widthOffset
                    height:(CGFloat)height;

- (void)setTest:(NSString *)test
             font:(UIFont *)font
       frameStyle:(YYFrameStyle)frameStyle
       horizontal:(CGFloat)horizontal
         vertical:(CGFloat)vertical
      widthOffset:(CGFloat)widthOffset;

- (void)setTest:(NSString *)test
             font:(UIFont *)font
       frameStyle:(YYFrameStyle)frameStyle
       horizontal:(CGFloat)horizontal
         vertical:(CGFloat)vertical
      widthOffset:(CGFloat)widthOffset
           height:(CGFloat)height;

@end
